package com.peas.platform.module.icims.contract.initial.adapter.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

// 初始合同验收条件
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_initial_inspection`")
public class ContractInitialInspectionPo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 验收内容
    @Comment(value = "验收内容")
    @Size(max = 1000, message = "验收内容不能超过1000个字符")
    @TableField(value = "`content`", jdbcType = JdbcType.VARCHAR)
    private String content;

    // 验收条件负责人用户ID
    // 【用户表】
    @Comment(value = "验收条件负责人用户ID")
    @NotNull(message = "验收条件负责人用户ID不能为空")
    @TableField(value = "`principal_user_id`", jdbcType = JdbcType.BIGINT)
    private Long principalUserId;

    // 备注
    @Comment(value = "备注")
    @TableField(value = "`remark`", jdbcType = JdbcType.CLOB)
    private String remark;

}
